<%@ include file="../../common/common_include.jsp" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	RegisterForm form = (RegisterForm) request.getAttribute(Constants.FORM_COMMAND_KEY);
	String name = "";
	if(form.getType().equalsIgnoreCase(Constants.USER_THIRD_TYPE_QQ)){
		name = "QQ";
	}else if(form.getType().equalsIgnoreCase(Constants.USER_THIRD_TYPE_SINA)){
		name="新浪微博";
	}else if(form.getType().equalsIgnoreCase(Constants.USER_THIRD_TYPE_RENREN)){
		name="人人网";
	}
%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>注册</title>
<script>

</script>

<style type="text/css">
	#content{
		width:800px;
		margin:0 auto;
	}
	#top{
		height:50px;
		line-height:50px;
	}
	#left{
		float:left;
	}
	#right{
		float:left;
	}
</style>
</head>
<body>
<div id="content">
	<div id="top">欢迎来自<span><%=name%></span>的<span style="color:blue"><%=form.getNickname()%></span>,欢迎使用！接下来简单完善您的账户信息就OK了！</div>
	<div id="left"><img src="<%=form.getImageUrlSmall()%>" /></div>
	<div id="right">	
		<form action="/register/third/doRegister" method="get">
			用户名:<input type="text" name="userName" value="<%=form.getNickname()%>" /><br> 
			密&nbsp;&nbsp;码:<input type="password" name="password" value="abc123" /><br> 
			邮&nbsp;&nbsp;箱:<input type="text" name="email" value="fangjinsong2008@163.com" /><br><br>
						
			<input type="hidden" name="thirdId" value="<%=form.getThirdId()%>" >
			<input type="hidden" name="nickname" value="<%=form.getNickname()%>" >				
			<input type="hidden" name="accessToken" value="<%=form.getAccessToken()%>" >
			<input type="hidden" name="expiresin" value="<%=form.getExpiresin()%>" >
			<input type="hidden" name="imageUrlSmall" value="<%=form.getImageUrlSmall() %>" >
			
			<input type="hidden" name="imageUrlLarge" value="<%=form.getImageUrlLarge()%>" >			
			<input type="hidden" name="type" value="<%=form.getType() %>" >
						
			<input type="submit" value="注册">
		</form>
	</div>
</div>
</body>
</html>